package com.itheima.common;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 加载线程池参数值
 */
//@Component
@ConfigurationProperties(prefix = "task.pool")
@Data
public class TaskThreadPoolInfo {

    //核心线程数
    private Integer corePoolSize;
    //设置最大线程数
    private Integer maxPoolSize;
    //设置线程活跃时间单位秒
    private Integer keepAliveSeconds;
    //设置队列容量
    private Integer queueCapacity;

}